Class com.symantec.itools.vcafe.openapi.pluginapi.JPluginFrame
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class com.symantec.itools.vcafe.openapi.pluginapi.JPluginFrame

Object
   |
   +----Component
           |
           +----Container
                   |
                   +----Window
                           |
                           +----Frame
                                   |
                                   +----EmbeddedFrame
                                           |
                                           +----WEmbeddedFrame
                                                   |
                                                   +----BasePluginWindow
                                                           |
                                                           +----BasePluginFrame
                                                                   |
                                                                   +----PluginFrame
                                                                           |
                                                                           +----com.symantec.itools.vcafe.openapi.pluginapi.JPluginFrame

public class JPluginFrame
extends PluginFrame
implements WindowConstants, RootPaneContainer
The API used to integrate a frame window into Visual Cafe

Version:
1.0
Author:
Symantec Internet Tools Division
Since:
VCafe 3.0
See Also:
PluginFrame

Variable Index

 o rootPane
The JRootPane instance that manages the contentPane and optional menuBar for this frame, as well as the glassPane.
 o rootPaneCheckingEnabled
If true then calls to add and setLayout cause an exception to be thrown.

Constructor Index

 o com.symantec.itools.vcafe.openapi.pluginapi.JPluginFrame()
Constructs a new Frame that is initially invisible.
 o com.symantec.itools.vcafe.openapi.pluginapi.JPluginFrame(String)
Constructs a new, initially invisible Frame with the specified title.

Method Index

 o addImpl(Component, Object, int)
By default, children may not be added directly to a this component, they must be added to its contentPane instead.
 o createRootPane()
Called by the constructor methods to create the default rootPane.
 o frameInit()
Called by the constructors to init the JPluginFrame properly.
 o getContentPane()
Returns the contentPane object for this frame.
 o getDefaultCloseOperation()
Returns the operation which occurs when the user initiates a "close" on this frame.
 o getGlassPane()
Returns the glassPane object for this frame.
 o getLayeredPane()
Returns the layeredPane object for this frame.
 o getRootPane()
Returns the rootPane object for this frame.
 o isRootPaneCheckingEnabled()
Returns whether calls to add and setLayout cause an exception to be thrown.
 o processKeyEvent(KeyEvent)
Processes key events occurring on this component and, if appropriate, passes them on to components in the frame which have registered interest in them.
 o processWindowEvent(WindowEvent)
Processes window events occurring on this component.
 o setContentPane(Container)
Sets the contentPane property.
 o setDefaultCloseOperation(int)
Sets the operation which will happen by default when the user initiates a "close" on this frame.
 o setGlassPane(Component)
Sets the glassPane property.
 o setLayeredPane(JLayeredPane)
Sets the layeredPane property.
 o setLayout(LayoutManager)
By default the layout of this component may not be set, the layout of its contentPane should be set instead.
 o setRootPane(JRootPane)
Sets the rootPane property.
 o setRootPaneCheckingEnabled(boolean)
Determines whether calls to add and setLayout cause an exception to be thrown.
 o update(Graphics)
Just calls paint(g).

Variables

 o rootPane
protected com.sun.java.swing.JRootPane rootPane
The JRootPane instance that manages the contentPane and optional menuBar for this frame, as well as the glassPane.

See Also:
JRootPane, RootPaneContainer
 o rootPaneCheckingEnabled
protected boolean rootPaneCheckingEnabled
If true then calls to add and setLayout cause an exception to be thrown.

See Also:
isRootPaneCheckingEnabled, setRootPaneCheckingEnabled

Constructors

 o JPluginFrame
public JPluginFrame()
Constructs a new Frame that is initially invisible.

See Also:
setSize, setVisible
 o JPluginFrame
public JPluginFrame(String title)
Constructs a new, initially invisible Frame with the specified title.

Parameters:
title - the title for the frame
See Also:
setSize, setVisible

Methods

 o addImpl
protected void addImpl(Component comp,
                       Object constraints,
                       int index)
By default, children may not be added directly to a this component, they must be added to its contentPane instead. For example:
 thisComponent.getContentPane().add(child)
 
An attempt to add to directly to this component will cause an runtime exception to be thrown. Subclasses can disable this behavior.

Throws: Error
if called with rootPaneChecking true
Overrides:
addImpl in class Container
See Also:
setRootPaneCheckingEnabled
 o createRootPane
protected com.sun.java.swing.JRootPane createRootPane()
Called by the constructor methods to create the default rootPane.

 o frameInit
protected void frameInit()
Called by the constructors to init the JPluginFrame properly.

 o getContentPane
public java.awt.Container getContentPane()
Returns the contentPane object for this frame.

See Also:
setContentPane, getContentPane
 o getDefaultCloseOperation
public int getDefaultCloseOperation()
Returns the operation which occurs when the user initiates a "close" on this frame.

Returns:
an int indicating the window-close operation
See Also:
setDefaultCloseOperation
 o getGlassPane
public java.awt.Component getGlassPane()
Returns the glassPane object for this frame.

See Also:
setGlassPane, getGlassPane
 o getLayeredPane
public com.sun.java.swing.JLayeredPane getLayeredPane()
Returns the layeredPane object for this frame.

See Also:
setLayeredPane, getLayeredPane
 o getRootPane
public com.sun.java.swing.JRootPane getRootPane()
Returns the rootPane object for this frame.

See Also:
setRootPane, getRootPane
 o isRootPaneCheckingEnabled
protected boolean isRootPaneCheckingEnabled()
Returns whether calls to add and setLayout cause an exception to be thrown.

Returns:
true if add and setLayout are checked
See Also:
addImpl, setLayout, setRootPaneCheckingEnabled
 o processKeyEvent
protected void processKeyEvent(KeyEvent e)
Processes key events occurring on this component and, if appropriate, passes them on to components in the frame which have registered interest in them.

Parameters:
e - the key event
Overrides:
processKeyEvent in class BasePluginWindow
See Also:
processKeyEvent
 o processWindowEvent
protected void processWindowEvent(WindowEvent e)
Processes window events occurring on this component. Hides the window or disposes of it, as specified by the setting of the defaultCloseOperation property.

Parameters:
e - the window event
Overrides:
processWindowEvent in class Window
See Also:
setDefaultCloseOperation, processWindowEvent
 o setContentPane
public void setContentPane(Container contentPane)
Sets the contentPane property. This method is called by the constructor.

Parameters:
contentPane - the contentPane object for this frame
Throws: IllegalComponentStateException
(a runtime exception) if the content pane parameter is null
See Also:
getContentPane, setContentPane
 o setDefaultCloseOperation
public void setDefaultCloseOperation(int operation)
Sets the operation which will happen by default when the user initiates a "close" on this frame. The possible choices are:

The value is set to HIDE_ON_CLOSE by default.

See Also:
addWindowListener, getDefaultCloseOperation
 o setGlassPane
public void setGlassPane(Component glassPane)
Sets the glassPane property. This method is called by the constructor.

Parameters:
glassPane - the glassPane object for this frame
See Also:
getGlassPane, setGlassPane
 o setLayeredPane
public void setLayeredPane(JLayeredPane layeredPane)
Sets the layeredPane property. This method is called by the constructor.

Parameters:
layeredPane - the layeredPane object for this frame
Throws: IllegalComponentStateException
(a runtime exception) if the layered pane parameter is null
See Also:
getLayeredPane, setLayeredPane
 o setLayout
public void setLayout(LayoutManager manager)
By default the layout of this component may not be set, the layout of its contentPane should be set instead. For example:
 thiComponent.getContentPane().setLayout(new BorderLayout())
 
An attempt to set the layout of this component will cause an runtime exception to be thrown. Subclasses can disable this behavior.

Throws: Error
if called with rootPaneChecking true
Overrides:
setLayout in class Container
See Also:
setRootPaneCheckingEnabled
 o setRootPane
protected void setRootPane(JRootPane root)
Sets the rootPane property. This method is called by the constructor.

Parameters:
root - the rootPane object for this frame
See Also:
getRootPane
 o setRootPaneCheckingEnabled
protected void setRootPaneCheckingEnabled(boolean enabled)
Determines whether calls to add and setLayout cause an exception to be thrown.

Parameters:
enabled - a boolean value, true if checking is to be enabled, which cause the exceptions to be thrown
See Also:
addImpl, setLayout, isRootPaneCheckingEnabled
 o update
public void update(Graphics g)
Just calls paint(g). This method was overridden to prevent an unneccessary call to clear the background.

Parameters:
g - the Graphics context in which to paint
Overrides:
update in class BasePluginWindow

All Packages  Class Hierarchy  This Package  Previous  Next  Index